<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/DefaultTemplate.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="top">
        Account Reactivation
    </ui:define>

    <ui:define name="content">
        <h:form>
            <h:panelGroup layout="block" rendered="#{loginManagerBean.accountValid}">
                <p>Click the button to re-activate your account and then log in again.</p>
                <p:commandButton ajax="false" id="resetBtn" value="Re-Activate" action="#{loginManagerBean.reactivateAccount}" />
            </h:panelGroup>
 
            <h:panelGroup layout="block" rendered="#{!loginManagerBean.accountValid}">
                <p>Activation failed! Sorry, you are not authorized.</p> 
                <p:commandButton ajax="false" id="redirectBtn" value="Go back to Log in Page" action="/LoginAdmin/login?faces-redirect=true"/>
            </h:panelGroup>
        </h:form>
    </ui:define>

    <ui:define name="bottom">
       
    </ui:define>

</ui:composition>
